package org.example.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.example.entity.BaseEntity;

/**
 * 缴费实体类
 */
@Data
@TableName("sys_payment")
public class Payment extends BaseEntity {
    @TableId(type = IdType.AUTO)    //主键自增长
    private Long id; //缴费ID
    private String address;//缴费地址
    private Double waterFee;//水费
    private Double electricFee;//电费
    @TableField(exist = false)
    private Long userId;//用户ID
}
